package com.weaver.drools.common.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import java.util.Set;


/**
 * The persistent class for the E_AQ_PNL_POR_163 database table.
 * 
 */
@Entity
@Table(name="E_AQ_PNL_POR_163")
public class EAqPnlPor163 implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="E_AQ_PNL_POR_163_PORID_GENERATOR",sequenceName="SE_E_AQ_PNL_POR_163",allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="E_AQ_PNL_POR_163_PORID_GENERATOR")
	private Long porid;

	private String casebrief;

	private String casename;

	private String caseoringin;

	private String causeofaction;

	@Temporal(TemporalType.DATE)
	private Date contacttime;

	private Long currentnodetype;

	private Long currentverifysequence;

	private String deletereason;

	private String deregulation;

	private String devisehandlingopinion;

	private Long finaldelaynum;

	private Long haspunishedunitnum;

	private Long isarchived;

	private Long iscurrentdelay;

	private Long isdeleted;

	private Long isenternextbp;

	private Long isneedinvestigate;

	private Long isprint;

	private Long isrecordinvestigate;

	private Long isreview;

	private String parties;

	@Temporal(TemporalType.DATE)
	private Date planfinaldate;

	private String pnlbasis;

	@Temporal(TemporalType.DATE)
	private Date pordate;

	private String porfileurl;

	private Long portype;

	private Long punishmentitems;

	private Long punishunitnum;

	private String registrant;

	private String remark;

	@Temporal(TemporalType.DATE)
	private Date reportdate;

	@Column(name="RESERVED_1")
	private String reserved1;

	@Column(name="RESERVED_2")
	private String reserved2;

	@Column(name="RESERVED_3")
	private String reserved3;

	@Temporal(TemporalType.DATE)
	private Date undertakedate;

	private String undertaker;

	private Long verifynum;

	private String writnumber;
	
	@OneToMany(mappedBy="EAqPnlPor163")
	private Set<EAqPnlVolumecatalogitem574> EAqPnlVolumecatalogitem574s;

	@OneToMany(mappedBy="EAqPnlPor163")
	private Set<EAqInsUndertaker272> EAqInsUndertaker272s;
	
	@OneToMany(mappedBy="EAqPnlPor163")
	private Set<EAqPnlOverview146> EAqPnlOverview146s;
	
	@ManyToOne
	@JoinColumn(name="WRITID")
	private DWrit100 DWrit100;

	@ManyToOne
	@JoinColumn(name="INPECTIONPANDECTID")
	private EAqInsInpectionpandect599 EAqInsInpectionpandect599;
	
	@ManyToOne
	@JoinColumn(name="ACCIDENTDETAILSID")
	private ASfAccidentdetails1039 ASfAccidentdetails1039;
	
	@ManyToOne
	@JoinColumn(name="DATASTATUSID")
	private DDatastatus4 DDatastatus4;
	
	@ManyToOne
	@JoinColumn(name="BPTYPEID")
	private DBptype113 DBptype113;
	
	@ManyToOne
	@JoinColumn(name="CAUSEOFACTIONTYPEID")
	private DCauseofactiontype449 DCauseofactiontype449;
	
	@ManyToOne
	@JoinColumn(name="CASEORINGINTYPEID")
	private DCaseoringintype430 DCaseoringintype430;
	
	@ManyToOne
	@JoinColumn(name="DETAILSREGISTERTYPEID")
	private DDetailsregistertype123 DDetailsregistertype123;
	
	@ManyToOne
	@JoinColumn(name="USERID")
	private UUsrUser36 UUsrUser36ByUserid;
	
	@ManyToOne
	@JoinColumn(name="LATESTOPERATEUSERID")
	private UUsrUser36 UUsrUser36ByLatestoperateuserid;
	
	@ManyToOne
	@JoinColumn(name="DEPARTMENTID")
	private QCmnDepartment23 QCmnDepartment23ByDepartmentid;
	
	@ManyToOne
	@JoinColumn(name="SUPERVISEVIEWTYPEID")
	private DSuperviseviewtype83 DSuperviseviewtype83;
	
	@ManyToOne
	@JoinColumn(name="DATATYPEID")
	private DDatatype3 DDatatype3;
	
	public EAqPnlPor163() {
	}

	public Long getPorid() {
		return this.porid;
	}

	public void setPorid(Long porid) {
		this.porid = porid;
	}

	public String getCasebrief() {
		return this.casebrief;
	}

	public void setCasebrief(String casebrief) {
		this.casebrief = casebrief;
	}

	public String getCasename() {
		return this.casename;
	}

	public void setCasename(String casename) {
		this.casename = casename;
	}

	public String getCaseoringin() {
		return this.caseoringin;
	}

	public void setCaseoringin(String caseoringin) {
		this.caseoringin = caseoringin;
	}

	public String getCauseofaction() {
		return this.causeofaction;
	}

	public void setCauseofaction(String causeofaction) {
		this.causeofaction = causeofaction;
	}

	public Date getContacttime() {
		return this.contacttime;
	}

	public void setContacttime(Date contacttime) {
		this.contacttime = contacttime;
	}

	public Long getCurrentnodetype() {
		return this.currentnodetype;
	}

	public void setCurrentnodetype(Long currentnodetype) {
		this.currentnodetype = currentnodetype;
	}

	public Long getCurrentverifysequence() {
		return this.currentverifysequence;
	}

	public void setCurrentverifysequence(Long currentverifysequence) {
		this.currentverifysequence = currentverifysequence;
	}

	public String getDeletereason() {
		return this.deletereason;
	}

	public void setDeletereason(String deletereason) {
		this.deletereason = deletereason;
	}

	public String getDeregulation() {
		return this.deregulation;
	}

	public void setDeregulation(String deregulation) {
		this.deregulation = deregulation;
	}

	public String getDevisehandlingopinion() {
		return this.devisehandlingopinion;
	}

	public void setDevisehandlingopinion(String devisehandlingopinion) {
		this.devisehandlingopinion = devisehandlingopinion;
	}

	public Long getFinaldelaynum() {
		return this.finaldelaynum;
	}

	public void setFinaldelaynum(Long finaldelaynum) {
		this.finaldelaynum = finaldelaynum;
	}

	public Long getHaspunishedunitnum() {
		return this.haspunishedunitnum;
	}

	public void setHaspunishedunitnum(Long haspunishedunitnum) {
		this.haspunishedunitnum = haspunishedunitnum;
	}

	public Long getIsarchived() {
		return this.isarchived;
	}

	public void setIsarchived(Long isarchived) {
		this.isarchived = isarchived;
	}

	public Long getIscurrentdelay() {
		return this.iscurrentdelay;
	}

	public void setIscurrentdelay(Long iscurrentdelay) {
		this.iscurrentdelay = iscurrentdelay;
	}

	public Long getIsdeleted() {
		return this.isdeleted;
	}

	public void setIsdeleted(Long isdeleted) {
		this.isdeleted = isdeleted;
	}

	public Long getIsenternextbp() {
		return this.isenternextbp;
	}

	public void setIsenternextbp(Long isenternextbp) {
		this.isenternextbp = isenternextbp;
	}

	public Long getIsneedinvestigate() {
		return this.isneedinvestigate;
	}

	public void setIsneedinvestigate(Long isneedinvestigate) {
		this.isneedinvestigate = isneedinvestigate;
	}

	public Long getIsprint() {
		return this.isprint;
	}

	public void setIsprint(Long isprint) {
		this.isprint = isprint;
	}

	public Long getIsrecordinvestigate() {
		return this.isrecordinvestigate;
	}

	public void setIsrecordinvestigate(Long isrecordinvestigate) {
		this.isrecordinvestigate = isrecordinvestigate;
	}

	public Long getIsreview() {
		return this.isreview;
	}

	public void setIsreview(Long isreview) {
		this.isreview = isreview;
	}

	public String getParties() {
		return this.parties;
	}

	public void setParties(String parties) {
		this.parties = parties;
	}

	public Date getPlanfinaldate() {
		return this.planfinaldate;
	}

	public void setPlanfinaldate(Date planfinaldate) {
		this.planfinaldate = planfinaldate;
	}

	public String getPnlbasis() {
		return this.pnlbasis;
	}

	public void setPnlbasis(String pnlbasis) {
		this.pnlbasis = pnlbasis;
	}

	public Date getPordate() {
		return this.pordate;
	}

	public void setPordate(Date pordate) {
		this.pordate = pordate;
	}

	public String getPorfileurl() {
		return this.porfileurl;
	}

	public void setPorfileurl(String porfileurl) {
		this.porfileurl = porfileurl;
	}

	public Long getPortype() {
		return this.portype;
	}

	public void setPortype(Long portype) {
		this.portype = portype;
	}

	public Long getPunishmentitems() {
		return this.punishmentitems;
	}

	public void setPunishmentitems(Long punishmentitems) {
		this.punishmentitems = punishmentitems;
	}

	public Long getPunishunitnum() {
		return this.punishunitnum;
	}

	public void setPunishunitnum(Long punishunitnum) {
		this.punishunitnum = punishunitnum;
	}

	public String getRegistrant() {
		return this.registrant;
	}

	public void setRegistrant(String registrant) {
		this.registrant = registrant;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Date getReportdate() {
		return this.reportdate;
	}

	public void setReportdate(Date reportdate) {
		this.reportdate = reportdate;
	}

	public String getReserved1() {
		return this.reserved1;
	}

	public void setReserved1(String reserved1) {
		this.reserved1 = reserved1;
	}

	public String getReserved2() {
		return this.reserved2;
	}

	public void setReserved2(String reserved2) {
		this.reserved2 = reserved2;
	}

	public String getReserved3() {
		return this.reserved3;
	}

	public void setReserved3(String reserved3) {
		this.reserved3 = reserved3;
	}

	public Date getUndertakedate() {
		return this.undertakedate;
	}

	public void setUndertakedate(Date undertakedate) {
		this.undertakedate = undertakedate;
	}

	public String getUndertaker() {
		return this.undertaker;
	}

	public void setUndertaker(String undertaker) {
		this.undertaker = undertaker;
	}

	public Long getVerifynum() {
		return this.verifynum;
	}

	public void setVerifynum(Long verifynum) {
		this.verifynum = verifynum;
	}

	public String getWritnumber() {
		return this.writnumber;
	}

	public void setWritnumber(String writnumber) {
		this.writnumber = writnumber;
	}

	public DWrit100 getDWrit100() {
		return DWrit100;
	}

	public void setDWrit100(DWrit100 dWrit100) {
		DWrit100 = dWrit100;
	}

	public Set<EAqPnlVolumecatalogitem574> getEAqPnlVolumecatalogitem574s() {
		return this.EAqPnlVolumecatalogitem574s;
	}

	public void setEAqPnlVolumecatalogitem574s(Set<EAqPnlVolumecatalogitem574> EAqPnlVolumecatalogitem574s) {
		this.EAqPnlVolumecatalogitem574s = EAqPnlVolumecatalogitem574s;
	}

	public EAqPnlVolumecatalogitem574 addEAqPnlVolumecatalogitem574(EAqPnlVolumecatalogitem574 EAqPnlVolumecatalogitem574) {
		getEAqPnlVolumecatalogitem574s().add(EAqPnlVolumecatalogitem574);
		EAqPnlVolumecatalogitem574.setEAqPnlPor163(this);

		return EAqPnlVolumecatalogitem574;
	}

	public EAqPnlVolumecatalogitem574 removeEAqPnlVolumecatalogitem574(EAqPnlVolumecatalogitem574 EAqPnlVolumecatalogitem574) {
		getEAqPnlVolumecatalogitem574s().remove(EAqPnlVolumecatalogitem574);
		EAqPnlVolumecatalogitem574.setEAqPnlPor163(null);

		return EAqPnlVolumecatalogitem574;
	}

	public EAqInsInpectionpandect599 getEAqInsInpectionpandect599() {
		return EAqInsInpectionpandect599;
	}

	public void setEAqInsInpectionpandect599(EAqInsInpectionpandect599 eAqInsInpectionpandect599) {
		EAqInsInpectionpandect599 = eAqInsInpectionpandect599;
	}

	public ASfAccidentdetails1039 getASfAccidentdetails1039() {
		return ASfAccidentdetails1039;
	}

	public void setASfAccidentdetails1039(ASfAccidentdetails1039 aSfAccidentdetails1039) {
		ASfAccidentdetails1039 = aSfAccidentdetails1039;
	}

	public DDatastatus4 getDDatastatus4() {
		return DDatastatus4;
	}

	public void setDDatastatus4(DDatastatus4 dDatastatus4) {
		DDatastatus4 = dDatastatus4;
	}

	public DBptype113 getDBptype113() {
		return DBptype113;
	}

	public void setDBptype113(DBptype113 dBptype113) {
		DBptype113 = dBptype113;
	}

	public DCauseofactiontype449 getDCauseofactiontype449() {
		return DCauseofactiontype449;
	}

	public void setDCauseofactiontype449(DCauseofactiontype449 dCauseofactiontype449) {
		DCauseofactiontype449 = dCauseofactiontype449;
	}

	public DCaseoringintype430 getDCaseoringintype430() {
		return DCaseoringintype430;
	}

	public void setDCaseoringintype430(DCaseoringintype430 dCaseoringintype430) {
		DCaseoringintype430 = dCaseoringintype430;
	}

	public Set<EAqInsUndertaker272> getEAqInsUndertaker272s() {
		return EAqInsUndertaker272s;
	}

	public void setEAqInsUndertaker272s(Set<EAqInsUndertaker272> eAqInsUndertaker272s) {
		EAqInsUndertaker272s = eAqInsUndertaker272s;
	}

	public DDetailsregistertype123 getDDetailsregistertype123() {
		return DDetailsregistertype123;
	}

	public void setDDetailsregistertype123(DDetailsregistertype123 dDetailsregistertype123) {
		DDetailsregistertype123 = dDetailsregistertype123;
	}

	public UUsrUser36 getUUsrUser36ByUserid() {
		return UUsrUser36ByUserid;
	}

	public void setUUsrUser36ByUserid(UUsrUser36 uUsrUser36ByUserid) {
		UUsrUser36ByUserid = uUsrUser36ByUserid;
	}

	public UUsrUser36 getUUsrUser36ByLatestoperateuserid() {
		return UUsrUser36ByLatestoperateuserid;
	}

	public void setUUsrUser36ByLatestoperateuserid(UUsrUser36 uUsrUser36ByLatestoperateuserid) {
		UUsrUser36ByLatestoperateuserid = uUsrUser36ByLatestoperateuserid;
	}

	public QCmnDepartment23 getQCmnDepartment23ByDepartmentid() {
		return QCmnDepartment23ByDepartmentid;
	}

	public void setQCmnDepartment23ByDepartmentid(QCmnDepartment23 qCmnDepartment23ByDepartmentid) {
		QCmnDepartment23ByDepartmentid = qCmnDepartment23ByDepartmentid;
	}

	public DSuperviseviewtype83 getDSuperviseviewtype83() {
		return DSuperviseviewtype83;
	}

	public void setDSuperviseviewtype83(DSuperviseviewtype83 dSuperviseviewtype83) {
		DSuperviseviewtype83 = dSuperviseviewtype83;
	}

	public DDatatype3 getDDatatype3() {
		return DDatatype3;
	}

	public void setDDatatype3(DDatatype3 dDatatype3) {
		DDatatype3 = dDatatype3;
	}

	public Set<EAqPnlOverview146> getEAqPnlOverview146s() {
		return EAqPnlOverview146s;
	}

	public void setEAqPnlOverview146s(Set<EAqPnlOverview146> eAqPnlOverview146s) {
		EAqPnlOverview146s = eAqPnlOverview146s;
	}
	
}